package com.hysf.service.impl;

import com.hysf.dao.ProductDao;
import com.hysf.dao.impl.ProductDaoImpl;
import com.hysf.entity.Product;
import com.hysf.service.ProductService;

import java.util.List;
/**
 *
 * @Description:
 *
 * @Author: 石涛
 * @Date: 2024/4/9 10:51
 **/
public class ProductServiceImpl implements ProductService {
    private ProductDao dao = new ProductDaoImpl();

    private ProductDao dao2 = new ProductDaoImpl();

    private ProductDao dao3 = new ProductDaoImpl();

    private ProductDao dao4 = new ProductDaoImpl();

    private ProductDao dao5 = new ProductDaoImpl();

    @Override
    public List<Product> findAll() {
        return dao.findAll();
    }

    @Override
    public List<Product> hotfind() {
        return dao2.hotfind();
    }

    @Override
    public List<Product> newfind() {
        return dao3.newfind();
    }

    @Override
    public List<Product> newshow(String pid) {
        return dao4.newshow(pid);
    }

    @Override
    public List<Product> cshow(String cid) {
        return dao4.cshow(cid);
    }
}
